package com.leyou.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author YYP
 * @date 2021/1/11
 */
@FeignClient("auth-service")
public interface AuthClient {
    /**
     * 根据clientId和secret的校验结果,获取jwtUtils的专用key
     * @param clientId
     * @param secret
     * @return
     */
    @GetMapping("/client/key")
    public String getKey(@RequestParam("clientId") String clientId,@RequestParam("secret")String secret);
}
